From 5b8f97902a5e86f228bb9fa2f3d2ed6dc4f752d0 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sat, 20 Dec 2008 07:59:33 +0000 Subject: [PATCH] (decode_coding): Clear chars_at_source flag when using charbuf. --- src/coding.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coding.c b/src/coding.c index e292f808597..869a2715640 100644 --- a/src/coding.c +++ b/src/coding.c @@ -6654,6 +6654,8 @@ decode_coding (coding) that the number of data is less than the size of coding->charbuf. */ coding->charbuf_used = 0; + coding->chars_at_source = 0; + while (nbytes-- > 0) { int c = *src++; -- 2.30.2